<?php
/**
 * Created by PhpStorm.
 * User: hgq
 * Date: 16/6/15
 * Time: 上午9:35
 */
?>
<div>
    <?php
    if ($goods != '') {
        ?>
    <form class="form-inline" role="form">
        <div class="form-group">
            <label for="exampleInputEmail2">商品编码：</label>
            <input type="text" class="form-control" value="<?= $goods["code"] ?>">

            <label for="exampleInputPassword2">商品名称：</label>
            <input type="text" class="form-control" value="<?= $goods["name"] ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">展示名称：</label>
            <input type="text" class="form-control" value="<?= $goods["display_name"] ?>">

            <label for="exampleInputPassword2">概要描述：</label>
            <input type="text" class="form-control" value="<?= $goods["summary"] ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">同款编码：</label>
            <input type="text" class="form-control" value="<?= $goods["group_code"] ?>">

            <label for="exampleInputPassword2">差异名称：</label>
            <input type="text" class="form-control" value="<?= $goods["group_item_name"] ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">商品规格：</label>
            <input type="text" class="form-control" value="<?= $goods["format"] ?>">

            <label for="exampleInputPassword2">商品型号：</label>
            <input type="text" class="form-control" value="<?= $goods["model"] ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">商品品牌：</label>
            <input type="text" class="form-control" value="<?= $goods["brand"] ?>">

            <label for="exampleInputPassword2">商品类型：</label>
            <input type="text" class="form-control" value="<?php if ($goods["type"] == 1) {
                echo '实物';
            } else if ($goods["type"] == 2) {
                echo '虚拟商品';
            } ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">组合类型：</label>
            <input type="text" class="form-control" value="<?php if ($goods["bind_type"] == 1) {
                echo '单品';
            } else if ($goods["type"] == 2) {
                echo '组合商品';
            } ?>">
            <label for="exampleInputEmail2">结算价格：</label>
            <input type="text" class="form-control" value="<?= $goods["settlement_price"] ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">销售价格：</label>
            <input type="text" class="form-control" value="<?= $goods["selling_price"] ?>">

            <label for="exampleInputEmail2">供应价格：</label>
            <input type="text" class="form-control" value="<?= $goods["supply_price"] ?>">
        </div>
        <div class="form-group" style=" margin-top: 3px">
            <label for="exampleInputEmail2">所属分类：</label>
            <input type="text" class="form-control" value="<?= $goods["category_name"] ?>">

        </div>
        <br>
        <div class="checkbox" style="margin-top: 15px">
            <label>
                <input type="checkbox" <?php if ($goods["is_enabled"] == 1) {
                    echo("checked");
                } ?>>是否启用
            </label>
            <label>
                <input type="checkbox" style="margin-left: 60px" <?php if ($goods["is_shelved"] == 1) {
                    echo("checked");
                } ?>> 是否上架
            </label>
            <label>
                <input type="checkbox" style="margin-left: 50px" <?php if ($goods["is_newest"] == 1) {
                    echo("checked");
                } ?>> 是否新品
            </label>
        </div>
        <br>
        <div class="checkbox" style=" margin-top: 15px">
            <label>
                <input type="checkbox" <?php if ($goods["is_activity"] == 1) {
                    echo("checked");
                } ?>> 是否活动商品
            </label>
            <label>
                <input type="checkbox" style=" margin-left: 28px" <?php if ($goods["is_trusteeship"] == 1) {
                    echo("checked");
                } ?>> 是否托管商品
            </label>
            <label>
                <input type="checkbox" style=" margin-left: 23px" <?php if ($goods["is_crossborder"] == 1) {
                    echo("checked");
                } ?>> 是否跨境商品
            </label>
        </div>
    </form>
        <?php
    }
    ?>
</div>

